package com.shop.manager.mapper;

//import com.shop.manager.entity.Item;
import com.base.common.entity.Item;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.special.InsertListMapper;

/**
 * @ClassName ItemMapper
 **/
@Repository
public interface ItemMapper extends Mapper<Item>, InsertListMapper<Item> {

    @Update("update tb_item set stock_count = #{arg1} where id=#{arg0}")
    void deductionStock(Long itemId, Integer newStock);

//    void addSaleNum(Long itemId, Integer num);
}
